<script setup lang="ts">

</script>

<template>
  <nav-bar :zIndex="2001"/>
  
  <RouterView v-slot="{ Component }">
    <KeepAlive>
      <component
        v-if="$route.meta.keepAlive"
        :is="Component"
        :key="$route.name"
      />
    </KeepAlive>
    <component
      v-if="!$route.meta.keepAlive"
      :is="Component"
      :key="$route.name"
    />
  </RouterView>
</template>

<style lang="less" scoped>

</style>
